#!/bin/bash
#
#  receives txt files and combines them in
#  a 2 column bilingual latex file.
#
#

in1=$1
in2=$2
out=$3

echo > $out


echo '\begin{paracol}{2}'  >> $out

echo '\begin{otherlanguage}{russian}' >> $out
sed "s/$/\n/g" $in1     >> $out
echo '\end{otherlanguage}'   >> $out

echo '\switchcolumn'    >> $out


#echo '\begin{otherlanguage}{english}' >> $out
sed "s/$/\n/g" $in2                   >> $out
#echo '\end{otherlanguage}'   >> $out


echo '\end{paracol}' >> $out
